﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Data;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;

using Maticsoft.DBUtility;
using DQYT.HTDZ.Common;

namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            //DataSet ds = DbHelperOleDb.Query("select * from t_sjcjb_temp");

            BlobData d = new BlobData();

            d.Orig_Id = 123;
            d.Data = new float[] { 100, 200, 201, 301.1f, 404, 500.32f, 600 };

            byte[] bytes = BinarySerializer.SerializeObject(d);

            BlobData s = BinarySerializer.DeserializeObject<BlobData>(bytes);
            
        }

    }

    [Serializable]
    public class BlobData
    {
        public Int64 Orig_Id
        { 
            get; 
            set; 
        }

        public float[] Data
        {
            get;
            set;
        }
    }
}
